package com.senseu.testserver.repository;

import com.senseu.testserver.model.Account;

import java.util.ArrayList;
import java.util.List;

public class AccountRepositoryImpl implements AccountCustomRepository {
    @Override
    public List<Account> fetchAllAccount() {
        List<Account> accounts = new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            Account account = new Account();
            account.setId(System.currentTimeMillis());
            account.setUsername("username" + i);
            account.setPassword("password" + i);
            accounts.add(account);
        }
        return accounts;
    }
}
